<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>category</title>
    <!-- 引入mui的样式 -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="./css/common.css">
    <!-- 首页 自己的样式 -->
    <link rel="stylesheet" href="./css/category.css">
</head>

<body>
    <!-- 头部 -->
    <header id="header" class="mui-bar mui-bar-nav">
        <a href="javascript:history.back();" class="fa fa-arrow-left h_left"></a>
        <input type="text" class="text">
        <a href="search.html" class="fa fa-search h_right"></a>
    </header>
    <!-- 内容 -->
    <div class="lt-view">
        <div class="lt-view-left">
        </div>
        <div class="lt-view-right"></div>
    </div>
    <!-- 尾部 -->
    <div class="foot">
        <a class="shouye" href="index.html">
      <span class="fa fa-home"></span>
      <h3>首页</h3>
    </a>
        <a class="fenlei active" href="category.html">
      <span class="fa fa-bars"></span>
      <h3>分类</h3>
    </a>
        <a class="cart" href="cart.html">
      <span class="fa fa-cart-plus"></span>
      <h3>购物车</h3>
    </a>
        <a class="info" href="register.html">
      <span class="fa fa-user"></span>
      <h3>会员中心</h3>
    </a>
    </div>
</body>
<script type="text/html" id="leftTemp">
   <ul>
       {{each arr value index}}
       {{if indexx==0}}
       <li class="active" data-id="{{value.id}}">{{value.categoryName}}</li>
       {{else}}
       <li  data-id="{{value.id}}">{{value.categoryName}}</li>
       {{/if}}
       {{/each}}
   </ul>
</script>

<script type="text/html" id="rightTemp">
   <ul>
       {{each arr value index}}
          <li>
              <a href="javascript:;">
                  <img src="{{value.brandLogo}}" alt="">
                  <div class="brandName">{{value.brandName}}</div>
              </a>
          </li>
       {{/each}}
   </ul>
</script>
<!-- mui js  不依赖其他 -->
<!-- bootstrap- 基于jquery -->
<script src="./assets/mui/js/mui.js"></script>
<script src="./assets/arttemplate/template-web.js"></script>
<!-- zepto 方面我们自己开发 -->
<script src="./assets/zepto/zepto.js"></script>
<!-- 公共的js common.js -->
<script src="./js/common.js"></script>
<!-- 自己的js index.js -->
<script src="./js/category.js"></script>

</html>